package com.woniuxy.sales.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.sales.model.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.sales.model.vo.ProductsVo;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
 * 【管理员表】
*/
public interface AdminsService extends IService<Admins> {
ResponseEntity<?> login(Admins admins);
 public Admins getAdminsByUsername(Admins admins) ;
 public Page<Users> findUsers(Integer pageNum, Integer pageSize ,String username ,String phone);
public Page<ProductsVo> selectAllProducts(Integer pageNum, Integer pageSize ,String categoryName ,String name,String energy,int seatCount);
public Page<Appointments> selectAllAppointments(Integer pageNum, Integer pageSize,String telephone);
public Page<Reviews> selectAllReviews(Integer pageNum, Integer pageSize);
 public void updatePrice(int productId, int newPrice);
 public void updateStock(int productId, int newStock);

}
